import req from '../fetch/index.js'

const config = {
  // 获取分页表格信息
    getTableData: {
        url: '/pc/rotationChart/ListRotationChart',
        method:'post'
  },
  // 删除轮播图
  deteleRotationChart: {
    url: '/pc/rotationChart/deleteRotationChart',
    method:'post'
  },
  // 修改轮播图状态
  updateRotationChartStatus: {
    url: '/pc/rotationChart/updateRotationChartStatus',
    method:'post'
    },
  // 查询在售商品
listSaleGood: {
  url: 'pc/good/listSaleGood',
  method:'post'
  },
  // 新增
addRotationChart: {
  url: '/pc/rotationChart/addRotationChart',
  method:'post'
  }
}

const request = function (funcName, requestParam) {
  return req(config[funcName].url, config[funcName].method, requestParam, {}, config[funcName].fileConfig)
}
export default request
